import Router from 'koa-router';
import searchController from '../controllers/search.controller';

const router = new Router({ prefix: '/search' });

// 全文搜索
router.get('/', searchController.search);

// 获取搜索建议
router.get('/suggestions', searchController.getSuggestions);

export default router; 